<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
<title>编辑资料</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
 <link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="css/matrix-style.css" />
<link rel="stylesheet" href="css/matrix-media.css" />
<script charset="utf-8" src="editor/kindeditor-all.js"></script>
<script charset="utf-8" src="editor/lang/zh-CN.js"></script>
<link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href='http://fonts.useso.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
<style>
 .content-header{
/*   margin-top:-38px;
 */  font-size:16px;
  background-color:#fff;
 }
 .content-header table{
  font-weight:bolder;
  margin-left:30px;
 }
 .content-header .header-number{
  margin-left:10px;
 }
 div.span4{
 }
</style>
</head>
<body>

<!--Header-part-->
<div id="header">
  <h1><a href="dashboard.html">Matrix Admin</a></h1>
</div>
<!--close-Header-part--> 

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
  <ul class="nav">
    <li  class="dropdown" id="profile-messages" ><a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><i class="icon icon-user"></i>  <span class="text">Welcome User</span><b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="#"><i class="icon-user"></i> My Profile</a></li>
        <li class="divider"></li>
        <li><a href="#"><i class="icon-check"></i> My Tasks</a></li>
        <li class="divider"></li>
        <li><a href="login.html"><i class="icon-key"></i> Log Out</a></li>
      </ul>
    </li>
    <li class="dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-envelope"></i> <span class="text">Messages</span> <span class="label label-important">5</span> <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a class="sAdd" title="" href="#"><i class="icon-plus"></i> new message</a></li>
        <li class="divider"></li>
        <li><a class="sInbox" title="" href="#"><i class="icon-envelope"></i> inbox</a></li>
        <li class="divider"></li>
        <li><a class="sOutbox" title="" href="#"><i class="icon-arrow-up"></i> outbox</a></li>
        <li class="divider"></li>
        <li><a class="sTrash" title="" href="#"><i class="icon-trash"></i> trash</a></li>
      </ul>
    </li>
    <li class=""><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">Settings</span></a></li>
    <li class=""><a title="" href="login.html"><i class="icon icon-share-alt"></i> <span class="text">Logout</span></a></li>
  </ul>
</div>

<!--sidebar-menu-->

<div id="sidebar" ><a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard2</a>
  <ul>
   <li  ><a  href="<%=request.getContextPath()%>/dashboard"><i class="icon icon-home"></i> <span>Dashboard控制面板</span></a> </li>
    <li> <a href="<%=request.getContextPath()%>/study?method=page"><i class="icon icon-signal"></i> <span>Study news留学信息</span></a> </li>
    <li> <a href="<%=request.getContextPath()%>/travel?method=page"><i class="icon icon-inbox"></i> <span>Travel New旅游信息</span></a> </li>
    <li><a href="<%=request.getContextPath()%>/news?method=page"><i class="icon icon-th"></i> <span>Recent News近期新闻</span></a></li>
    <li><a href="<%=request.getContextPath()%>/member?method=page"><i class="icon icon-fullscreen"></i> <span>Members centre会员中心</span></a></li>
    <li class="active"><a href="<%=request.getContextPath() %>/assist?method=page"><i class="icon icon-th-list"></i> <span>助理管理</span></a>
    </li>
  </ul>
</div>
<div id="content">
  <div class="content-title">
    <button type="submit" onclick="document.location.href='<%=request.getContextPath() %>/assist?method=page'" class="btn" id="toprevious"><i class="icon-step-backward"></i>返回上一级</button>
       
 </div>
 <div class="container-fluid">
  <div class="row-fluid">
   <div class="span12">
     <div class="widget-box">
     <div class="widget-title">
      <h5>编辑助理资料</h5>
     </div>
     <div class="widget-content">
     <form action="<%=request.getContextPath() %>/assist?method=edit&id=${requestScope.assist.id}" method="post" class="form-horizontal" role="form">
       <div class="form-group">
        <label class="control-label" for="tit">名字</label>
        <div class="controls">
         <input type="text" class="span12" name="name" value="${requestScope.assist.name }" placeholder="(必填)">
        </div>
       </div>
       <div class="form-group">
        <label class="control-label" for="tit">部门</label>
        <div class="controls">
         <input type="text" class="span12" name="department" value="${requestScope.assist.department }" placeholder="(必填)">
        </div>
       </div> <div class="form-group">
        <label class="control-label" for="tit">手机号码</label>
        <div class="controls">
         <input type="text" class="span12" name="phone" value="${requestScope.assist.phone }" placeholder="(必填)">
        </div>
       </div> <div class="form-group">
        <label class="control-label" for="tit">邮箱地址</label>
        <div class="controls">
         <input type="text" class="span12" name="email" value="${requestScope.assist.email }" placeholder="(必填)">
        </div>
       </div> <div class="form-group">
        <label class="control-label" for="tit">微信号</label>
        <div class="controls">
         <input type="text" class="span12" name="wxid" value="${requestScope.assist.wxId }" placeholder="(必填)">
        </div>
       </div> <div class="form-group">
        <label class="control-label" for="tit">微信二维码</label>
        <div class="controls">
         <input type="text" id="url" class="span10" name="wxcode" value="${requestScope.assist.code }"  placeholder="(可选)"/>
		 <input type="button" id="image" class="span2" style="float:right"value="选择图片" />
		 <div id="div"><textarea name="content"  ></textarea></div>
     </div>
       </div>
       <button class=" btn btn-primary" type="submit"  onclick="return dofilter()">保存</button>
      </form>
     </div>
    </div>
   </div>
  </div>
 </div>
 </div>
<!--Footer-part-->
<div class="row-fluid">
  <div id="footer" class="span12"> 2016 &copy; <a href="http://themedesigner.in/">guangzhoushuntian information technology</a> </div>
</div>
<!--end-Footer-part-->

<script src="js/jquery.min.js"></script> 
<script type="text/javascript">

var editor;
KindEditor.ready(function (K) {
	//这里是kindeditor编辑器的基本初始化配置
 	 editor = K.create('textarea[name="content"]', {
		resizeType: 1,
		fullscreenMode: 0, //是否全屏显示
		designMode: 1,
		uploadJson:'editor/jsp/upload_json.jsp',
	    fileManagerJson : 'editor/jsp/file_manager_json.jsp',
		allowPreviewEmoticons: false,
		allowImageUpload: true,
		allowFileManager: true
	}); 
	//这里是监听按钮点击事件 然后在初始化点击按钮弹窗上传图片的基本配置
	K('#image').click(function () {
	editor.loadPlugin('image', function () {
	editor.plugin.imageDialog({
	imageUrl: K('#url').val(),
	clickFn: function (url, title, width, height, border, align) {
		K('#url').val(url);
		editor.hideDialog();
	}
	});
	});
	});
 });
 $("#div").css("display","none");

</script>
</body>
</html>
